package com.geeguo.ebuilder.client.base.database.remote;

import com.geeguo.ebuilder.client.base.core.constants.FeignNameConstants;
import com.geeguo.ebuilder.client.base.database.model.DataSourceInfoRO;
import com.geeguo.ebuilder.client.base.database.remote.fallback.DataSourceInfoApiFallback;
import com.geeguo.ebuilder.core.common.action.ActionResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = FeignNameConstants.EBUILDER_OPERATION_API_NAME, fallback = DataSourceInfoApiFallback.class, path = "/tenant/dataSourceInfo")
public interface DataSourceInfoApi {

    @GetMapping("/get/{id}")
    ActionResult<DataSourceInfoRO> get(@PathVariable("id") String id) ;
}